package com.lzx.resumeweb.control;

import com.lzx.resumebase.model.User;
import com.lzx.resumeservice.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName UserController
 * @Author 刘正星
 * @Date 2021/5/23 下午10:54
 * @Descriptiongit
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/getAll")
    public List<User> getAll(){
        return userService.findAll();
    }
}
